package com.tn.controller.alarm.common.model.weigh.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * 磅房日志信息实体类
 *
 * @program: tn_aucy_java
 * @author: yangjiayao
 * @create: 2021/11/16
 */
@Getter
@Setter
@ToString
public class WeighLogInfoVO {
    private long id;
    /**
     * 磅房编号
     */
    private String weighId;

    /**
     * 磅房名称
     */
    private String name;

    /**
     * 磅房位置
     */
    private String position;

    /**
     * 磅房识别的车牌
     */
    private String license;

    private String taskNo;

    /**
     * 货车入场ID
     */
//    private Integer truckId;

    /**
     * 闸口识别的车牌
     */
    private String originLicense;

    /**
     * 司机
     */
    private String driver;

    /**
     * 称重重量
     */
    private Float weight;

    /**
     * 标签ID
     */
//    private String tagId;

    /**
     * 称重时间
     */
    private String weighTime;

    /**
     * 皮重
     */
    private Float tareWeight;

    /**
     * 货重
     */
    private Float carryWeight;

    /**
     * 预计装货量
     */
//    private Float predictWeight;

    /**
     * 物流公司
     */
    private String company;

    /**
     * 货品
     */
    private String goods;

    /**
     * 进入时间
     */
    private String inTime;

    /**
     * 离开时间
     */
    private String outTime;

    /**
     * 照片
     */
    private String picture;

    /**
     * 视频
     */
    private String video;


    private String shipNo;


    private String operateType;

    private String goodsName;
    /**
     * 货主单位
     */
    private String customerCompanyName;
    /**
     * 物流公司
     */
    private  String consignCompanyName;

    /**
     * 上报时间
     */
    private String reportTime;

    /**
     * 上报结果
     */
    private String reportResult;

    private String reportSend;

    private String reportReceive;

    /**
     * 上报备注
     */
    private String reportRemark;

    /**
     * 批次（汇总的时候使用）
     */
    private int count;

    /**
     * 批次（汇总的时候使用）
     */
    private Float cargoWeight;

    private Float grossWeight;
    /**
     * 过毛时间
     */
    private String grossWeighTime;
    /**
     * 过皮时间
     */
    private String  tareWeighTime;

    private String  noticeSystem;

    private String  warehouseName;


    private String  cargoSpaceName;

    private String  stackNoName;

    private String  flowDirectionName;

    private String  contractNo;

    private String  cntrNo;

    private String  cntrSizeType;

    private String  remark;

    private String creator;

    private String creator2;

    private String userName;

    private String poundNo;

    private Integer state;

    private String hisDetail;

    private String takeWay;

    private String workProcessName;

    private String updateTime;

    private Integer version;

    private transient Long timeLong;

    private String createTime;




    /**
     * 获取是否超重
     *
     * @return isOverWeight
     */
//    public Boolean isOverWeight() {
//        return carryWeight != null && predictWeight != null && carryWeight > predictWeight;
//    }

    /**
     * 获取是否超重
     *
     * @return isOverWeight
     */
    public Boolean isCorrectLicense() {
        return StringUtils.isBlank(originLicense) || originLicense.equals(license);
    }
}
